package org.dicker.biz.impl;

import java.util.List;

import org.dicker.biz.UserBiz;
import org.dicker.dao.UserDao;
import org.dicker.dao.impl.UserDaoImpl;
import org.dicker.entity.UserInfo;


public class UserBizImpl implements UserBiz {
	UserDao  userDao = new UserDaoImpl();

	@Override
	public List<UserInfo> selectAll(String username,int page,int pageSize) {
		return userDao.selectAll(username, page, pageSize);
	}

	@Override
	public int update_user(UserInfo userInfo) {
		return userDao.update_user(userInfo);
	}

	@Override
	public int deleteuserid(int user_id) {
		return userDao.deleteuserid(user_id);
	}

	@Override
	public UserInfo selectUserid(String wx_openid) {	
		return userDao.selectUserid(wx_openid);
	}

	@Override
	public int selectCount(String username) {
		return userDao.selectCount(username);
	}

	@Override
	public boolean addUser(UserInfo uInfo) {
		return userDao.addUser(uInfo);
	}
	

}
